package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.UserFellowersMapper;
import com.yunji.framework_template.orm.persistence.model.UserFellowers;

/**
 * Created by fenglibin on 2018/11/26.
 */
@Service
public class UserFellowersService {

    @Autowired
    private UserFellowersMapper userFellowersMapper;

    public int deleteByPrimaryKey(Integer id) {
        return userFellowersMapper.deleteByPrimaryKey(id);
    }

    public int insert(UserFellowers record) {
        return userFellowersMapper.insert(record);
    }

    public int insertSelective(UserFellowers record) {
        return userFellowersMapper.insertSelective(record);
    }

    public UserFellowers selectByPrimaryKey(Integer id) {
        return userFellowersMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(UserFellowers record) {
        return userFellowersMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(UserFellowers record) {
        return userFellowersMapper.updateByPrimaryKey(record);
    }

    public List<UserFellowers> selectByCondition(UserFellowers record) {
        return userFellowersMapper.selectByCondition(record);
    }

    public List<UserFellowers> selectAll() {
        return userFellowersMapper.selectAll();
    }

    public List<UserFellowers> selectByPage(Page<UserFellowers> page) {
        return userFellowersMapper.selectByPage(page);
    }

    public Integer count(UserFellowers record) {
        return userFellowersMapper.count(record);
    }

    public int deleteByCondition(UserFellowers record) {
        return userFellowersMapper.deleteByCondition(record);
    }

}
